@layout("/common/_container.html"){
<div class="ibox float-e-margins" xmlns="http://www.w3.org/1999/html">
    <div class="ibox-content">
        <form id="reportForm" method="post" action="${ctxPath}/publicBusHub/exportDocByT" accept="application/msword">
            <div class="form-horizontal">

                <input type="hidden" id="_header" value="Accept=application/msword">
                <h3>基本信息：</h3>
                <br/>
                <div class="row">
                    <div class="col-sm-6 b-r">
                        <div class="form-group">

                            <div class="col-sm-12">
                                <#input  id="accidentName" name="事故单位："/>
                            </div>
                        </div>

                        <div class="form-group">

                            <div class="col-sm-12">
                                <#input  id="accidentPlace" name="中断站点：" value = "${stationName}" />
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <div class="form-group">
                            <div class="col-sm-12">
                                <#input  id="startTime" name="发生时间：" value = "${stationSatrtTime}" />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-12">
                                <#input  id="endTime" name="结束时间：" value = "${endTime}" />
                            </div>
                        </div>
                    </div>
                    <hr/>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">接驳公交数量：</label>
                        <div class="col-sm-11">
                        <textarea id="bb" name="busNum" class="form-control" required=""
                                   aria-required="true" >需要${busNum}辆接驳车辆</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">接驳路线：</label>
                        <div class="col-sm-11">
                        <textarea id="aa" name="busLine" class="form-control" required=""
                                  rows="6" aria-required="true" >${connectionPath}</textarea>
                        </div>
                    </div>

                    <div id="itemsArea">
                        <#button btnCss="info" name="公交接驳车司机信息" icon="fa-plus" clickFun="PulicBusHubReport.addItem()"/>
                    </div>
                </div>
                </div>
        </form>

        <div class="row btn-group-m-t">
            <div class="col-sm-10">
                <#button btnCss="info" name="生成文档" id="ensure" icon="fa-check" clickFun="PulicBusHubReport.submit()"/>
                <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="PulicBusHubReport.close()"/>
            </div>
        </div>
    </div>

</div>
</div>

<script type="text/template" id="itemTemplate">
    <div class="row" name="dictItem" id="dictItem">
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-3 control-label">姓名：</label>
                <div class="col-sm-9">
                    <input type="text" name="name" class="form-control" />
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label">车牌号：</label>
                <div class="col-sm-8">
                    <input type="text" name="plateNum" class="form-control" required="" aria-required="true"/>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group" >
                <label class="col-sm-4 control-label">联系电话：</label>
                <div class="col-sm-8">
                    <input type="text" name="telphone" class="form-control" required="" aria-required="true"/>
                </div>
            </div>
        </div>
        <div >
            <#button btnCss="danger" name="删除" id="cancel" icon="fa-remove"
                    clickFun="PulicBusHubReport.deleteItem(event)"/>
        </div>
    </div>
</script>

<script src="${ctxPath}/static/modular/bus/publicBusHub/publicBusHub_report.js"></script>
<script src="${ctxPath}/static/modular/yjya/publicbus/publicbus_info.js"></script>
@}
